cmake_minimum_required(VERSION 3.0.0)
project(blending VERSION 0.1.0)

set(CMAKE_CXX_STANDARD 11)

include(CTest)
enable_testing()

find_package(OpenCV REQUIRED)

aux_source_directory(./src DIR_SRCS)
include_directories(./inc)
include_directories(/opt/DahuaTech/MVviewer/include)
link_directories(./lib/JHCap)
link_directories(/opt/DahuaTech/MVviewer/lib)
link_directories(/opt/DahuaTech/MVviewer/lib/GenICam/bin/Linux64_x64)
add_executable(blending ${DIR_SRCS})

target_link_libraries(blending ${OpenCV_LIBS})
target_link_libraries(blending libJHCap.so)
target_link_libraries(blending MVSDK ImageConvert VideoRender)
target_link_libraries(blending GCBase_gcc421_v3_0 GenApi_gcc421_v3_0 Log_gcc421_v3_0 log4cpp_gcc421_v3_0 NodeMapData_gcc421_v3_0 XmlParser_gcc421_v3_0 MathParser_gcc421_v3_0 rt pthread)


set(CMAKE_BUILD_TYPE "Debug")

set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)
